INCLUDE("${CMAKE_CURRENT_LIST_DIR}/LibgtaformatsTargets.cmake")


SET(GTAFORMATS_ENABLE_PVRTEXLIB "@GTAFORMATS_ENABLE_PVRTEXLIB@")
SET(GTAFORMATS_ENABLE_SQUISH "@GTAFORMATS_ENABLE_SQUISH@")


GET_PROPERTY(compdefs TARGET gtaformats PROPERTY INTERFACE_COMPILE_DEFINITIONS)

LIST(FIND compdefs "__CMAKE_GTAFORMATS_DUMMY_EXPORT_IS_INSTALLED" instdefidx1)
LIST(FIND compdefs "-D__CMAKE_GTAFORMATS_DUMMY_EXPORT_IS_INSTALLED" instdefidx2)

IF(NOT instdefidx1 EQUAL -1  OR  NOT instdefidx2 EQUAL -1)
    SET(INSTALLED ON)
ELSE()
    SET(INSTALLED OFF)
ENDIF()


IF(INSTALLED)
    SET(GTATOOLS_CMAKE_MODULE_DIR "${CMAKE_CURRENT_LIST_DIR}/${GTATOOLS_CMAKE_MODULE_DIR_INSTALL}")
ELSE()
    SET(GTATOOLS_CMAKE_MODULE_DIR "${GTATOOLS_CMAKE_MODULE_DIR_BUILD}")
ENDIF()

SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${GTATOOLS_CMAKE_MODULE_DIR}")
